﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Bird : Animal, IFlyable
    {
        public Bird(string name) : base(name)
        { 
            this.name = name; 
        }
        public Bird() { }
        public override void Eat()
        {
            Console.WriteLine("{0}：能吃饭饭哦！",this.name);
        }

        public void Fly()
        {
            Console.WriteLine("{0}：我会飞的哦！",this.name);
        }

        public void Land()
        {
            Console.WriteLine("{0}：我会在陆地走路的哦！",this.name);
        }

        public void TakeOff()
        {
            Console.WriteLine("{0}：我准备起飞咯，拜拜咯!",this.name);
        }
        public void LayEggs()
        {
            Console.WriteLine("{0}：我要下蛋咯!", this.name);
        }
    }
}
